package com.example.order.service;

import com.example.order.config.ServiceResponse;
import com.example.order.config.TableServerResponse;
import pojo.Order;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface IOrderService {
    Map<String,Object> createorder(String userId, Order order);

    //void updateOrderStatus(String orderNumber);

    TableServerResponse getOrders(String userId, Integer page, Integer limit);

    ServiceResponse pay(String orderNo);

    ServiceResponse alipayCallback(Map<String, String> params);

    ServiceResponse query_order_pay_status(String orderNo);

    ServiceResponse getOrderByOrderNumber(String orderNumber);

    ServiceResponse orderConfirm(String orderNumber);

    TableServerResponse queryOrders(Order order, Integer page, Integer limit);

    String alipayCallbacks(HttpServletRequest request);

    TableServerResponse getOrder(Integer page, Integer limit);
}
